import { createPinia } from "pinia";
import { useUserStore } from "./modules/user";

import piniaPluginPersistedstate from "pinia-plugin-persistedstate";

const pinia = createPinia();
pinia.use(piniaPluginPersistedstate); // 使用数据持久化插件

export { useUserStore };
export default pinia;
